Static:
String.valueOf(true)             : <%= String.valueOf(true) %> 
String.valueOf(1)                : <%= String.valueOf(1) %> 

Normal:
<%
String s = "ala", t = "ola";
%>
"ala"                            : <%= "ala" %> 
"ala" + " ma kota"               : <%= "ala" + " ma kota" %> 
"ala " + 1                       : <%= "ala " + 1 %> 
"ala " + 1 + 2                   : <%= "ala " + 1 + 2 %> 
"ala " + 1 + 2.1                 : <%= "ala " + 1 + 2.1 %> 
"ala " + 1 + -1                  : <%= "ala " + 1 + -1 %> 
"ala " + 2 * 3                   : <%= "ala " + 1 + 2 * 3 %> 
"10" + 3 + 2 * 3                 : <%= "10" + 3 + 2 * 3 %> 
"10" + 3 + 2 * -3                : <%= "10" + 3 + 2 * -3 %> 
"ala " + -2                      : <%= "ala " + -2 %> 
"ala " + 3.0                     : <%= "ala " + 3.0 %> 
"ala " + -4.0                    : <%= "ala " + -4.0 %> 
5 + " ala"                       : <%= 5 + " ala" %> 
-6 + " ala"                      : <%= -6 + " ala" %> 
7.1 + " ala"                     : <%= 7.1 + " ala" %> 
-8.2e13 + " ala"                 : <%= -8.2e13 + " ala" %> 
"ala" + " ma kota " + 9          : <%= "ala" + " ma kota " + 9 %> 
"ala " + 10 + " ma kota"         : <%= "ala " + 10 + " ma kota" %> 
11 + " ala" + " ma kota"         : <%= 11 + " ala" + " ma kota" %> 
"ala " + true                    : <%= "ala " + true %> 
true + " ala"                    : <%= true + " ala" %> 
"ala " + 1 + true                : <%= "ala " + 1 + true %> 
1 + " ala " + true               : <%= 1 + " ala " + true %> 
1 - 2 + " ala " + true           : <%= 1 - 2 + " ala " + true %> 
2.1 * - 3.2 + " ala " + -6 / 2.0 : <%= 2.1 * - 3.2 + " ala " + -6 / 2.0 %> 
// 1 + true + "ala" is not correct Java expression

"ala" + 1 + 2 + 3 + 4            : <%= "ala" + 1 + 2 + 3 + 4 %> 
1 + "ala" + 2 + 3 + 4            : <%= 1 + "ala" + 2 + 3 + 4 %> 
1 + 2 + "ala" + 3 + 4            : <%= 1 + 2 + "ala" + 3 + 4 %> 
1 + 2 + 3 + "ala" + 4            : <%= 1 + 2 + 3 + "ala" + 4 %> 
1 + 2 + 3 + 4 + "ala"            : <%= 1 + 2 + 3 + 4 + "ala" %> 

"ala" + 2*3 + 3*4 + 5*6          : <%= "ala" + 2*3 + 3*4 + 5*6 %> 
2*3 + "ala" + 3*4 + 5*6          : <%= 2*3 + "ala" + 3*4 + 5*6 %> 
2*3 + 3*4 + "ala" + 5*6          : <%= 2*3 + 3*4 + "ala" + 5*6 %> 
2*3 + 3*4 + 5*6 + "ala"          : <%= 2*3 + 3*4 + 5*6 + "ala" %> 

s                                : <%= s %> 
s += " ola"                      : <%= s += " ola" %> 
s += 2                           : <%= s += 2 %> 
s = "al"                         : <%= s = s = "al" %> 
s += s += 2 + s                  : <%= s += s += 2 + s %> 
s += true                        : <%= s += true %> 
s = "ala"                        : <%= s = "ala" %> 
t                                : <%= t %> 
t +=s += t += s                  : <%= t +=s += t += s %> 
s = "ala"                        : <%= s = "ala" %> 
t = "ola"                        : <%= t = "ola" %> 
t +=s += t += s += " "           : <%= t +=s += t += s += " " %> 
s = "ala"                        : <%= s = "ala" %> 
s += s = "ula"                   : <%= s += s = "ula" %> 

s = "x"                          : <%= s = "x" %> 
<%
int i = 1;
%> 
i = 1                            : <%= i = 1 %> 
s += s += i += i += i            : <%= s += s += i += i += i %> 

s = "ala"                        : <%= s = "ala" %> 

"ala".compareTo("ola")           : <%= "ala".compareTo("ola") %> 
"ala".compareToIgnoreCase("ola") : <%= "ala".compareToIgnoreCase("ola") %> 
"ala".concat(" ma kota")         : <%= "ala".concat(" ma kota") %> 
"ala".equals("ola")              : <%= "ala".equals("ola") %> 
"ala".equals("a" + "la")         : <%= "ala".equals("a" + "la") %> 
"A " + "ala".equals("ala")       : <%= "A " + "ala".equals("ala") %> 
"A " + ! "ala".equals("ala")     : <%= "A " + ! "ala".equals("ala") %> 
"ala".equals(s)                  : <%= "ala".equals(s) %> 
"Ola".equalsIgnoreCase("ola")    : <%= "Ola".equalsIgnoreCase("ola") %> 
"Ola".equalsIgnoreCase(s)        : <%= "Ola".equalsIgnoreCase(s) %> 
"".hashCode()                    : <%= "".hashCode() %> 
"ala".hashCode()                 : <%= "ala".hashCode() %> 
"ala".intern()                   : <%= "ala".intern() %> 
"alaska".length()                : <%= "alaska".length() %> 
s.length()                       : <%= s.length() %> 
"ala".matches("a.a")             : <%= "ala".matches("a.a") %> 
"ala".replaceAll("^a", "e")      : <%= "ala".replaceAll("^a", "e") %> 
s.startsWith("al")               : <%= s.startsWith("al") %> 
"alabama".substring(5)           : <%= "alabama".substring(5) %> 
"Polska".toLowerCase()           : <%= "Polska".toLowerCase() %> 
"Polska".toString()              : <%= "Polska".toString() %> 
"Polska".toUpperCase()           : <%= "Polska".toUpperCase() %> 
" ala  ".trim()                  : <%= " ala  ".trim() %> 

TODO: przyklad z pelnym zakresem symboli (wymaga przekodowania literalow).

